/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.techshop.service.impl;

import com.techshop.dao.PhoneVoteDao;
import com.techshop.model.PhoneVote;
import com.techshop.service.PhoneVoteService;
import java.util.List;

/**
 *
 * @author hai
 */
public class PhoneVoteServiceImpl implements PhoneVoteService{

    private PhoneVoteDao phoneVoteDao;

    

   
    
    @Override
    public PhoneVote getById(int phonevoteID)
    {
        return this.getPhoneVoteDao().getById(phonevoteID);
    }

    @Override
    public List<PhoneVote> findAll()
    {
//        System.out.println("PhoneVoteServiceImpl.findAll()");
//        return null;
        return this.getPhoneVoteDao().findAll();
    }

   

    @Override
    public boolean insert(PhoneVote phoneVote) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public boolean update(PhoneVote phoneVote) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public boolean delete(PhoneVote phoneVote) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    public PhoneVoteDao getPhoneVoteDao() {
        return phoneVoteDao;
    }

    public void setPhoneVoteDao(PhoneVoteDao phoneVoteDao) {
        this.phoneVoteDao = phoneVoteDao;
    }
  

  

 
    
}
